
const { Toast } = vant

const vm = new Vue({
  el: '#app',
  data: {
    value: '',
    showPicker: false,
    columns: ['杭州', '宁波', '温州', '嘉兴', '湖州']
  },
  methods: {
    onChange(picker, value, index) {
      Toast(`当前值：${value}, 当前索引：${index}`);
    },
    onConfirm(value, index) {
      this.value = value;
      Toast(`当前值：${value}, 当前索引：${index}`)
      this.showPicker = false;
    }
  }
})